package com.atguigu.tingshu.user.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * ClassName: RestTemplate
 * Package: com.atguigu.tingshu.user.config
 * Description:RestTemplate配置类
 */
@Configuration
public class RestTemplateConfig {
    /**
     * 初始化RestTemplate
     * @return
     */
    @Bean
    public RestTemplate restTemplate (){
        return new RestTemplate();
    }
}
